package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.Prob;
import cn.wolfcode.luowowo.comment.domain.ProblemComment;
import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.ProblemCommentQuery;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IProblemCommentService {

    /**
     *  查询问题回答 列表
     * @param qo
     * @return
     */
    Page query(ProblemCommentQuery qo);

    /**
     *  添加回答
     * @param comment
     */
    void commentAdd(ProblemComment comment);

    /**
     *  查询该问题的总回答数
     * @param probId
     * @return
     */
    Long count(Long probId);

    /**
     *  前10最新回答
     * @return
     */
    List<ProblemComment> getNewTop10(Long id);

    void sava(ProblemComment problemComment);

    List<Prob> getshuju(Long rid);

}
